from django.conf.urls import url

from . import views

app_name = 'application'

urlpatterns = [
    url(r'^$', views.IndexView.as_view(), name='index'),
    url(r'^login/$', views.LoginView.as_view(), name='login'),
    url(r'^logout/$', views.LogoutView.as_view(), name='logout'),
    url(r'^server/apply$', views.ServerApplyView.as_view(), name='apply'),
    url(r'^server/(?P<app_id>[0-9]+)/detail$', views.DetailView.as_view(), name='detail'),
    url(r'^server/(?P<app_id>[0-9]+)/approval$', views.ApprovalView.as_view(), name='approval'),
    url(r'^server/(?P<app_id>[0-9]+)/success$', views.ApplySuccessView.as_view(), name='apply_success'),
]
